package com.hqyj.crmdemo.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import java.time.LocalDate;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * <p>
 * 
 * </p>
 *
 * @author 何万林
 * @since 2022-10-17
 */
@ApiModel(value = "Orders对象", description = "")
public class Orders implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("订单编号")
    @TableId(value = "orders_id", type = IdType.AUTO)
    private Integer ordersId;

    @ApiModelProperty("订单日期")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    private LocalDate ordersDate;

    @ApiModelProperty("订单金额")
    private String ordersAmount;

    @ApiModelProperty("订单送货地址")
    private String orderAddress;

    @ApiModelProperty("订单状态")
    private String orderState;

    @ApiModelProperty("客户编号")
    private Integer uId;

    public Integer getOrdersId() {
        return ordersId;
    }

    public void setOrdersId(Integer ordersId) {
        this.ordersId = ordersId;
    }

    public LocalDate getOrdersDate() {
        return ordersDate;
    }

    public void setOrdersDate(LocalDate ordersDate) {
        this.ordersDate = ordersDate;
    }

    public String getOrdersAmount() {
        return ordersAmount;
    }

    public void setOrdersAmount(String ordersAmount) {
        this.ordersAmount = ordersAmount;
    }

    public String getOrderAddress() {
        return orderAddress;
    }

    public void setOrderAddress(String orderAddress) {
        this.orderAddress = orderAddress;
    }

    public String getOrderState() {
        return orderState;
    }

    public void setOrderState(String orderState) {
        this.orderState = orderState;
    }

    public Integer getuId() {
        return uId;
    }

    public void setuId(Integer uId) {
        this.uId = uId;
    }

    @Override
    public String toString() {
        return "Orders{" +
            "ordersId = " + ordersId +
            ", ordersDate = " + ordersDate +
            ", ordersAmount = " + ordersAmount +
            ", orderAddress = " + orderAddress +
            ", orderState = " + orderState +
            ", uId = " + uId +
        "}";
    }
}
